<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    /* 
    需求：
        数组1[1,2,3,4,5]与数组2[6,7,8,9]进行合并，得出数组[1,2,3,4,5,6,7,8,9]
     */
     array1=[1,2,3,4,5];
     array2=[6,7,8,9];
     for (let i=0;i<array2.length;i++){
        array1.push(array2[i]);
     }
     console.log(array1);
</script>
</html>
